<?php

use common\enums\StatusEnum;
use common\helpers\Html;
use common\helpers\Url;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model addons\Minerva\common\models\MinervaDepartment */
/* @var $form yii\widgets\ActiveForm */

$this->title = 'Minerva Department';
$this->params['breadcrumbs'][] = ['label' => 'Minerva Departments', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
    .panel-heading{padding: 10px 15px;height: 46px;}
    .tooltip-demo{padding: 0;}
    .tooltip-demo span{margin-bottom: 10px;display: inline-block;}
    .col-sm-6>.col-lg-6:first-child{padding-left: 0;}
    .col-sm-6>.col-lg-6:last-child{padding-right: 0;}
</style>
<div class="row">
    <div class="col-lg-12">
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title">文件授权</h3>
            </div>
            <div class="box-body">
                <?php $form = ActiveForm::begin([
                    'fieldConfig' => [
                        'template' => "<div class='col-sm-2 text-right'>{label}</div><div class='col-sm-10'>{input}\n{hint}\n{error}</div>",
                    ],
                ]); ?>
                <div class="col-sm-12">
                    <?= $form->field($nets, 'net_name')->textInput(['maxlength' => true]) ?>
                    <?= $form->field($nets, 'master_guid')->textInput(['maxlength' => true]) ?>
                    <?= $form->field($nets, 'second_guid')->textInput(['maxlength' => true]) ?>
                    <?= $form->field($nets, 'file_path')->textInput(['maxlength' => true]) ?>
                    <?= $form->field($allow_ext, 'ext')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-sm-12">
                    <div class="form-group field-nets-master_guid">
                        <div class="col-sm-2 text-right">
                            <label class="control-label" for="nets-master_guid">扩展名</label>
                        </div>
                        <div class="col-sm-6">
                            <div class="col-lg-6">
                                <div class="panel panel-success">
                                    <div class="panel-heading">
                                        <span class="collapsed">允许扩展名</span>
                                        <span class="pull-right" id="1">
                                    <a class="btn btn-white btn-sm" href="<?= Url::to(['ajax-edit']) ?>" class="pull-left knob-label"
                                       data-toggle="modal"
                                       data-target="#ajaxModalLg"><i class="fa fa-edit"></i> 编辑</a>                                            <a class="btn btn-white btn-sm" href="" onclick="rfDelete(this);return false;"><i class="fa fa-times"></i> 清空</a>
                                                                    </span>
                                    </div>
                                    <div id="collapseOne" class="panel-collapse collapse in" aria-expanded="true" style="">
                                        <div class="panel-body">
                                            <div class="col-lg-12 tooltip-demo">
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在<i class="icon ion-android-close" style="margin-left: 10px;cursor: pointer;"></i></span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在吗</span>
                                            </div>
                                            <div class="col-lg-3">
                                                <div class="btn-group pull-right">
                                                    <!-- <a class="btn btn-white btn-sm" href="#"><i class="fa fa-bar-chart-o"></i> 使用率走势</a>-->
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="help-block">

                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="panel panel-danger">
                                    <div class="panel-heading">
                                        <span class="collapsed">拒绝扩展名</span>
                                        <span class="pull-right" id="1">
                                    <span class="label label-info">优先级：0</span>
                                                                                                                <span class="label label-info pointer" onclick="statusRule(this)">已启用</span>
                                                                    </span>
                                    </div>
                                    <div id="collapseOne" class="panel-collapse collapse in" aria-expanded="true" style="">
                                        <div class="panel-body">
                                            <div class="col-lg-9 tooltip-demo">
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在<i class="icon ion-android-close" style="margin-left: 10px;cursor: pointer;"></i></span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在吗</span>
                                            </div>
                                            <div class="col-lg-3">
                                                <div class="btn-group pull-right">
                                                    <a class="btn btn-white btn-sm" href="<?= Url::to(['ajax-edit']) ?>" class="pull-left knob-label"
                                                       data-toggle="modal"
                                                       data-target="#ajaxModalLg"><i class="fa fa-edit"></i> 编辑</a>                                            <a class="btn btn-white btn-sm" href="/backend/tiny-service/rule/delete?id=1" onclick="rfDelete(this);return false;"><i class="fa fa-times"></i> 删除</a>                                            <!-- <a class="btn btn-white btn-sm" href="#"><i class="fa fa-bar-chart-o"></i> 使用率走势</a>-->
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="help-block">

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="form-group field-nets-master_guid">
                        <div class="col-sm-2 text-right">
                            <label class="control-label" for="nets-master_guid">文件头</label>
                        </div>
                        <div class="col-sm-6">
                            <div class="col-lg-6">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <span class="collapsed">允许文件头</span>
                                        <span class="pull-right" id="1">
                                    <span class="label label-info">优先级：0</span>
                                                                                                                <span class="label label-info pointer" onclick="statusRule(this)">已启用</span>
                                                                    </span>
                                    </div>
                                    <div id="collapseOne" class="panel-collapse collapse in" aria-expanded="true" style="">
                                        <div class="panel-body">
                                            <div class="col-lg-9 tooltip-demo">
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在<i class="icon ion-android-close" style="margin-left: 10px;cursor: pointer;"></i></span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在吗</span>
                                            </div>
                                            <div class="col-lg-3">
                                                <div class="btn-group pull-right">
                                                    <a class="btn btn-white btn-sm" href="<?= Url::to(['ajax-edit']) ?>" class="pull-left knob-label"
                                                       data-toggle="modal"
                                                       data-target="#ajaxModalLg"><i class="fa fa-edit"></i> 编辑</a>                                            <a class="btn btn-white btn-sm" href="/backend/tiny-service/rule/delete?id=1" onclick="rfDelete(this);return false;"><i class="fa fa-times"></i> 删除</a>                                            <!-- <a class="btn btn-white btn-sm" href="#"><i class="fa fa-bar-chart-o"></i> 使用率走势</a>-->
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="help-block">

                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <span class="collapsed">拒绝文件头</span>
                                        <span class="pull-right" id="1">
                                    <span class="label label-info">优先级：0</span>
                                                                                                                <span class="label label-info pointer" onclick="statusRule(this)">已启用</span>
                                                                    </span>
                                    </div>
                                    <div id="collapseOne" class="panel-collapse collapse in" aria-expanded="true" style="">
                                        <div class="panel-body">
                                            <div class="col-lg-9 tooltip-demo">
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在<i class="icon ion-android-close" style="margin-left: 10px;cursor: pointer;"></i></span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在不在</span>
                                                <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="直接匹配关键字">在吗</span>
                                            </div>
                                            <div class="col-lg-3">
                                                <div class="btn-group pull-right">
                                                    <a class="btn btn-white btn-sm" href="<?= Url::to(['ajax-edit']) ?>" class="pull-left knob-label"
                                                       data-toggle="modal"
                                                       data-target="#ajaxModalLg"><i class="fa fa-edit"></i> 编辑</a>                                            <a class="btn btn-white btn-sm" href="/backend/tiny-service/rule/delete?id=1" onclick="rfDelete(this);return false;"><i class="fa fa-times"></i> 删除</a>                                            <!-- <a class="btn btn-white btn-sm" href="#"><i class="fa fa-bar-chart-o"></i> 使用率走势</a>-->
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="help-block">

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12 text-center">
                        <button class="btn btn-primary" type="submit">保存</button>
                        <span class="btn btn-white" onclick="history.go(-1)">返回</span>
                    </div>
                </div>
                <?php ActiveForm::end(); ?>
            </div>
        </div>
    </div>
</div>

